# Unfollow a user

Removes a follow relationship with a local or remote user. For remote users, specify the domain parameter or include it in the username. If mutual=true, removes bidirectional connection. Sends Undo Follow activity to remote users via ActivityPub. Returns error if no follow relationship exists.

Endpoint: POST /api/v1/users/follow/{username}/undo
Version: 1.0
Security: header

## Path parameters:

  - `username` (string, required)
    Username of the followee

## Query parameters:

  - `domain` (string,null)
    Followee's domain.  If omitted assumed to be local

  - `mutual` (boolean)
    'false' for regular Follow, 'true' for bidirectional Connect

  - `scheme` (string)
    http vs. https.  For testing ONLY
    Enum: "http", "https"

## Response 200 fields (application/json):

  - `result` (string, required)

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation

## Response 404 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation


